<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 
<f:loadBundle  basename="co.com.jaco.web.messages.aas.user" var="bundle"/>

<body> 

Language : 

	<h:form>
		<h:selectOneMenu value="#{language.localeCode}"  onchange="submit()"
			valueChangeListener="#{language.countryLocaleCodeChanged}">
   			<f:selectItems value="#{language.countriesInMap}" /> 
   		</h:selectOneMenu>
	
	</h:form>	
	<h:form>
	
	<h:panelGrid id="panel" columns="2" border="1"
   cellpadding="10" cellspacing="1">
      <f:facet name="header">
         <h:outputText value="#{bundle['title_form']}"/>
      </f:facet>
		<h:outputText value="#{bundle['first_name']}" />
		<h:inputText value="#{userBean.person.firstName}" />
		
		<h:outputText value="#{bundle['middle_name']}" />
		<h:inputText value="#{userBean.person.middleName}" />

		<h:outputText value="#{bundle['first_last_name']}" />
		<h:inputText value="#{userBean.person.firstLastName}" />


		<h:outputText value="#{bundle['second_last_name']}" />
		<h:inputText value="#{userBean.person.secondLastName}" />


      <f:facet name="footer">
         <h:panelGroup style="display:block; text-align:center">
            <h:commandButton id="submit" value="#{bundle['label_submit']}" action="#{userBean.createUser()}" />
         </h:panelGroup>
      </f:facet>
	</h:panelGrid>
	


	</h:form>
	
	

</body> 
</html>
